﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UMLDesigner
{
    public class AttributeData
    {
        private string name;
        private string type;
        private string visibility;

        public AttributeData(string newName, string newType, string newVisibility)
        {
            name = newName;
            type = newType;
            visibility = newVisibility;
        }

        public string GetName()
        {
            return name;
        }

        public void SetName(string newName)
        {
            name = newName;
        }

        public string GetAttrType()
        {
            return type;
        }

        public void SetType(string newType)
        {
            type = newType;
        }

        public string GetVisibility()
        {
            return visibility;
        }

        public void SetVisibility(string newVisibility)
        {
            visibility = newVisibility;
        }

        public string GetUMLRepresentation()
        {
            string umlVisibility = VisibilityType.GetUMLRepresentation(visibility);
            string representation = umlVisibility + " " + name + " : " + type;
            return representation;
        }

    }
}
